<template>
    <div id="userInformation">
        <mt-header fixed title="个人设置">
            <mt-button icon="back" @click.native="$router.go(-1);" slot="left">返回</mt-button>
        </mt-header>
        <div class="content">
            <div class="user">
                <div class="img"><img :src="$store.state.user.szHeadPicUrl==''?require('./../../assets/img/nopic.png'):$store.state.user.szHeadPicUrl" alt=""></div>
                <div class="nichen">{{$store.state.user.szNickName}}</div>
            </div>
            <mt-cell title="游戏id"  is-link to="/editgameid">
                <span>{{$store.state.user.agentId}}</span>
                <i class="iconfont icon-dailishang" slot="icon"></i>
            </mt-cell>
            <mt-cell title="代理账号" value="">
                <span>{{$store.state.user.accountName}}</span>
                <i class="iconfont icon-zhanghao" slot="icon"></i>
            </mt-cell>
            <mt-cell title="亲友群号和推荐码" value="123321">
                <span>{{$store.state.user.groupNo}}</span>
                <i class="iconfont icon-tuiguangma" slot="icon"></i>
            </mt-cell>
            <div class="ge"></div>
            <mt-cell title="钻石数量" value=""  class="nobckimg">
                <span style="color: green">{{$store.state.user.balanceMoney}}</span>
                <i class="iconfont icon-zuanshi" slot="icon"></i>
            </mt-cell>
            <mt-cell title="钻石预警" is-link to="editdia" value="">
                <span style="color: red">{{$store.state.user.prompt}}</span>
                <i class="iconfont icon-yujing" slot="icon"></i>
            </mt-cell>
            <mt-cell title="可提现余额" value="123321" to="cash" is-link>
                <span style="color: green">{{($store.state.user.balance/100).toFixed(2)}}元</span>
                <i class="iconfont icon-yueqia" slot="icon"></i>
            </mt-cell>
            <div class="ge"></div>
            <mt-cell title="最后登录时间" value="123321"  class="nobckimg">
                <span>{{$store.state.user.loginTime}}</span>
                <i class="iconfont icon-shijian" slot="icon"></i>
            </mt-cell>
            <div class="ge"></div>
            <mt-cell title="注销登陆" value="123321"    class="nobckimg"   @click.native="loginOut"  is-link>
                <span>退出登陆</span>
                <i class="iconfont icon-tuichudenglu" slot="icon"></i>
            </mt-cell>
            <div class="ge"></div>
            <mt-cell title="密码修改" value="123321"  class="nobckimg"  to="/editpass" is-link>
                <span>修改密码</span>
                <i class="iconfont icon-buchongiconsvg06" slot="icon"></i>
            </mt-cell>
             <div class="ge"></div>
              <mt-cell title="当前版本号" value="123321"  class="nobckimg"  to="/editpass" >
                <span>v1.2</span>
                <i class="iconfont  icon-banbenhao1" slot="icon"></i>
            </mt-cell>
           
        </div>
    </div>
</template>
<script>

    export default {
        name: "",
        components: {},
        data() {
            return {
                value: true
            }
        },
        methods: {
            loginOut:function(){
                sessionStorage.clear();
                this.$router.push("/login")
               // console.log('login out')
            }
        },
        mounted() {},
        created() {}
    }
</script>
<style lang="scss" scoped>
    .content {
        padding: 30px 10px 60px 10px;
    }
    .user {
        display: flex;
        padding: 10px 10px 10px 10px;
        margin-bottom: 20px;
        align-items: center;
        background: #ffffff;
        .img {
            width: 80px;
            img {
                display: block;
                width: 100%;
            }
        }
        .nichen {
            padding-left: 15px;
            flex: 1;
            color: #aca1a1;
            font-size: 16px;
            white-space: nowrap;
            overflow: hidden;
        }
    }
    .ge {
        width: 100%;
        height: 25px;
        background: #eeeeee;
    }
    .noimg {
       
    }

   
    
</style>

